home *** CD-ROM | disk | FTP | other *** search
- Path: jblhome.ping.dk!usenet
- From: jacob@jblhome.ping.dk (Jacob Lorensen)
- Newsgroups: comp.unix.programmer,comp.lang.c
- Subject: Re: Applying file masks in UNIX using C/C++
- Date: 13 Apr 1996 20:50:34 +0200
- Organization: Jacobs home computer.
- Sender: jacob@pippin.jblhome.ping.dk
- Message-ID: <m1pw9cot51.fsf@pippin.jblhome.ping.dk>
- References: <31618AFE.5476@netrover.com>
- <m1g2akuyph.fsf@pippin.jblhome.ping.dk>
- <4k7icoINNp4c@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: pippin.jblhome.ping.dk
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- In-reply-to: c2a192@ugrad.cs.ubc.ca's message of 6 Apr 1996 21:04:24 -0800
- X-Newsreader: Gnus v5.1
-
- >>>>> "Kazimir" == Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> writes:
-
- Kazimir> In article <m1g2akuyph.fsf@pippin.jblhome.ping.dk>, Jacob
- Kazimir> Lorensen <jacob@jblhome.ping.dk> wrote:
-
- >>>>>>> "Stephane" == Stephane Charette <charrick@netrover.com>
- >>>>>>> writes:
-
- Stephane> This is a long shot...but...does anyone know of the
- Stephane> existence of public domain C/C++ code which will apply a
- Stephane> file mask to an existing filename and return a TRUE or
- Stephane> FALSE response?
-
- >> WILDMAT(3) WILDMAT(3)
-
- >> NAME wildmat - perform shell-style wildcard matching
-
- >> SYNOPSIS int wildmat(text, pattern) char *text; char *pattern;
-
- Kazimir> I've never even heard of wildmat! I have checked three
- Kazimir> different major UNIX OS's and none of them have it in
- Kazimir> their man page roster.
-
- No, I would not have thought so. That's also the reason I put a bit of
- extra information in my article, namely (also from the manual page):
-
- HISTORY
- Written by Rich $alz <rsalz@uunet.uu.net> in 1986, and
- posted to Usenet several times since then, most notably in
- comp.sources.misc in March, 1991.
-
- I.e., it appears to be a freely available library written by Rick Salz
- and posted to Usenet. As the description of the routine's
- functionality matches that requested by the original poster (Stephane
- Charette), namely to match a set of file names against a shell-style
- globbing pattern, I still think it may be a good idea to try and find
- it. Glob() searches the directory itself and thus can _only_ be used
- to find file names; wildmat() can be used to match arbitrary strings,
- including filenames, against a pattern.
-
- BTW, wildmat() is included in the INN distribution.
-
- Jacob.
-
- --
- Jacob Lorensen; Mosebuen 33, 1.; DK-2820 Gentofte, Denmark; +45-31560401
- PGP Key fingerprint = 1E 87 26 46 74 36 DC 4A 72 3B 66 78 C5 AD 9E 71
- Public key available at the keyservers.
-